package com.jtbd.service;

import com.jtbd.domain.Organization;
import com.jtbd.mapper.OrganizationMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class OrganizationService {
    @Resource
    private OrganizationMapper organizationMapper;

    /**
     * 添加机构信息
     *
     * @param organization 机构信息
     * @return 添加结果
     */
    public int addOrganization(Organization organization) {
        return organizationMapper.insert(organization);
    }

    public Organization getJtbdOrganization() {
        return organizationMapper.selectById(1L);
    }
}
